import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { PolymerElement } from '@vaadin/angular2-polymer';

import { StatisComponent } from './statis.component';
import { StatisListComponent } from './statis/list.component';
import { StatisRoutingModule } from './statis-routing.module';

import { StatisService } from '../service/statistics.service';

@NgModule({
    imports: [
        CommonModule,
        HttpModule,
        StatisRoutingModule
    ],
    declarations: [
        PolymerElement('vaadin-grid'),
        StatisComponent,
        StatisListComponent
    ],
    providers: [
        StatisService
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class StatisModule { }
